package com.zhangkunhao.notes.entity.DO;

import java.sql.Timestamp;

/**
 * 笑话
 *
 * @author 张坤浩
 */
public class Jokes {
    /**
     * 地狱笑话（包括内容、标题、发布者、发布时间）
     */
    private Integer id;
    private String title;
    private String content;
    /**
     * 发布者姓名
     */
    private String launcherName;
    private Timestamp launchTime;
    /**
     * 笑话访问者
     */
    private String viewers;
    private Integer consumingVirtue;

    public Jokes() {
    }

    public Jokes(Integer id, String title, String content, String launcherName, Timestamp launchTime, String viewers, Integer consumingVirtue) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.launcherName = launcherName;
        this.launchTime = launchTime;
        this.viewers = viewers;
        this.consumingVirtue = consumingVirtue;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     *
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     *
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     *
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     *
     * @return launcherName
     */
    public String getLauncherName() {
        return launcherName;
    }

    /**
     * 设置
     *
     * @param launcherName
     */
    public void setLauncherName(String launcherName) {
        this.launcherName = launcherName;
    }

    /**
     * 获取
     *
     * @return launchTime
     */
    public Timestamp getLaunchTime() {
        return launchTime;
    }

    /**
     * 设置
     *
     * @param launchTime
     */
    public void setLaunchTime(Timestamp launchTime) {
        this.launchTime = launchTime;
    }

    /**
     * 获取
     *
     * @return viewers
     */
    public String getViewers() {
        return viewers;
    }

    /**
     * 设置
     *
     * @param viewers
     */
    public void setViewers(String viewers) {
        this.viewers = viewers;
    }

    /**
     * 获取
     *
     * @return consumingVirtue
     */
    public Integer getConsumingVirtue() {
        return consumingVirtue;
    }

    /**
     * 设置
     *
     * @param consumingVirtue
     */
    public void setConsumingVirtue(Integer consumingVirtue) {
        this.consumingVirtue = consumingVirtue;
    }

    @Override
    public String toString() {
        return "Jokes{id = " + id + ", title = " + title + ", content = " + content + ", launcherName = " + launcherName + ", launchTime = " + launchTime + ", viewers = " + viewers + ", consumingVirtue = " + consumingVirtue + "}";
    }
}
